<form class="layui-form" action="{:url()}" method="post" id="editForm">

    {:FormExt::select('操作人', 'admin_id', '',$checkclothShrinkUserKV,'','','lay-verify="required"')}
    {:FormExt::select('材料', 'material_id', '',$materialList,'','','lay-verify="required"')}
    {:FormExt::input('布号', 'cloth_num', '', '请输入布号', 'required', 'lay-verify="required|number"')}
    
    {if $formData['type'] == 2 }
    {:FormExt::input('缩前重量', 'weight_shrink', '', '请输入缩前重量', 'required', 'lay-verify="required|number"')}
    {:FormExt::input('纸筒重量', 'weight_page', '', '请输入纸筒重量', 'required', 'lay-verify="required|number"')}
    {:FormExt::input('缩水米长', 'length', '', '请输入缩水米长', 'required', 'lay-verify="required|number"')}
    {:FormExt::input('布边损料X2', 'edge_damage', '', '请输入布边损料X2', 'required', 'lay-verify="required|number"')}
	{else /}
	{:FormExt::input('验布米长', 'cc_length', $formData['length'], '请输入验布米长', 'required', 'lay-verify="required|number"')}
    {:FormExt::input('实测布封', 'true_fabric_width', '', '请输入实测布封', 'required', 'lay-verify="required|number"')}
	{/if}
    
    {:FormExt::checkbox('次品类型','rejects_id', explode(',', $formData['rejects_ids']), $rejectsKV,'','lay-verify=""')}
    {:FormExt::input('次品米数', 'rejects_length', '', '请输入次品米数', '', 'lay-verify=""')}

    <div class="pop-bottom-bar">
    	<input type="hidden" class="field-id" name="id">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>

{include file="system@block/layui" /}
    
<script>
    var formData = {:json_encode($formData)};
    layui.use(['form', 'func'], function() {
        var $ = layui.jquery, form = layui.form;
        layui.func.assign(formData);
    });
</script>